import { Application } from "egg";

export default (app: Application) => {
    const { router, controller } = app;
    const checkopenid = app.middleware.checkopenid();
    router.post('/api/user/address/:id', checkopenid, controller.ctrlAddress.post); // ------------------------------ 用户地址
    router.get("/api/user/address", checkopenid, controller.ctrlAddress.get);
    router.post("/api/user/address/del/:id", checkopenid, controller.ctrlAddress.del);
    router.get("/api/user/address/detail", checkopenid, controller.ctrlAddress.detail);
};
